package demo13;

import java.io.File;
import java.util.Scanner;

/**
 * @author Huangjin
 * @version 1.0
 * describe:
 * @date 2023/3/6 20:20
 */
public class Test04 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个目录名：");
        String input = sc.next();
        File file = new File("./"+input);
        if (file.exists()){
            file.delete();
            System.out.println("删除成功！");
        }else {
            System.out.println("删除失败！");
        }
    }
}
